package com.yanggu.jt808.handler;

import com.yanggu.jt808.model.base.DataPackage;
import com.yanggu.jt808.model.resp.CommonResp;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


/**
 * 不支持的消息
 */
@Slf4j
@Component
public class NoSupportHandler implements PackHandler {

    @Override
    public DataPackage handle(DataPackage msg, int flowId) {
        log.error("不支持的消息");
        return CommonResp.response(msg, flowId, CommonResp.UNSUPPORTED);
    }
}
